package cn.taofuxn.sale;

import cn.taofuxn.sale.bean.TbGoods;
import cn.taofuxn.sale.service.SaleService;
import cn.taofuxn.sale.service.data.base.BaseResult;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * ProjectName : GeekSaleSystem
 * PackageName : cn.taofuxn.sale
 * Created by Wong
 * Date: 2018/3/15
 * Time: 15:33
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
public class MyTestDao {
	
	@Autowired
	private SaleService m_saleService;
	
	@Test
	public void method(){
		TbGoods tTbGoods = new TbGoods();
		tTbGoods.setName("手办");
		tTbGoods.setPlatform(TbGoods.PlatformType.ME);
//		tTbGoods.setProvider("狼族动漫");
	}
	
	@Test
	public void method1() {
		BaseResult tBaseResult = m_saleService.getOrders(0, 10, null, null);
		System.out.println(tBaseResult.toString());
	}
}
